def sum():
    while True:
        x = int(input('请输入数字1:'))
        y = int(input('请输入数字2:'))
        sum_xy = x + y
        print(sum_xy)
        temp = input('是否继续输入(Y/N):')
        if temp == 'y':
            sum()
        else:
            return 'bye'


try:
    print(sum())
except ValueError:
    print("您输入的不是数字，请再次尝试输入！")
